package com.cblz.bd.server.frontend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cblz.bd.server.frontend.entity.BaUserRule;
import com.cblz.bd.server.frontend.entity.BaUserRuleTree;

import java.io.Serializable;
import java.util.List;

/**
 * @author yanjieping
 * @description 针对表【ba_user_rule(会员权限规则表)】的数据库操作Service
 * @createDate 2022-11-04 15:09:54
 */
public interface BaUserRuleService extends IService<BaUserRule> {

    /**
     * 根据登录ID获取外部用户的访问权限
     *
     * @param loginId 登录ID
     * @return
     */
    List<BaUserRuleTree> getAllUserRule(Serializable loginId);
}
